import { defineStore } from 'pinia';
 
export const useConfigStore = defineStore('config', {
    state: () => ({
        debug: false,
        puid: '',
		platform: 'weixin',
        coopdata: {},
        scene: 0,
        version: '0.7.114',//版本号放入请求头
        privacyVersion: '1',//隐私协议版本号
        WXSDKVersion: '',//微信基础库版本号
		//系统中使用的变量
		domain: 'https://api.srea.org.cn',
		debugDomain: 'http://192.168.1.93:8000',
    }),

    getters: {
    },

    actions: {
        setCoopData(info) {
            this.coopdata = {...info}
        },
        setPuid(id) {
            this.puid = id
        },
        setScene(value) {
			this.scene = value
		},
        setWXSDKVersion(version) {
            this.WXSDKVersion = version
        }
    }
})